<%@ page import="java.util.List" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="/QuestionAnswer/AnswersPost" method="post">
<% String question = request.getAttribute("question").toString(); %>
		<input type="hidden" name="question" id="qid" value="<%=question %>"/>
<table>
	<tr> <td> <%=question %> </td> </tr>

<%	List<String> answersList =(List)request.getAttribute("answersList");
	for(String answer : answersList) {
%>
		<tr> <td> <%=answer %> </td> </tr> 
<%  } %>
		<tr> <td> <font size="5"> Your Answer</font> </td> </tr>
		<tr> <td> <textarea rows="10" cols="60" name="myanswer "></textarea> </td> </tr>
		<tr > <td> <input type="submit" name="postAnswer"  value="Post Your Answer">
	</table>
</form>

</body>
</html>